/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.stream.IntStream;

/**
 * <p>Project: javase - Stream5
 * <p>Powered by webrx On 2021-12-22 17:54:11
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Stream5 {
    public static void main(String[] args) {
        var s1 = IntStream.range(1, 6);
        s1.peek(e -> e = e * e).forEach(System.out::println);
        //s1.map(e -> e % 2 == 0 ? e * e : e).forEach(System.out::println);


    }
}
